<%--
  Created by IntelliJ IDEA.
  User: LeiPeichen
  Date: 15/4/7
  Time: 下午2:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head>
    <title>add</title>
</head>
<body>

<div class="portlet">
    <div class="portlet-heading default-bg">
        <div class="portlet-title">
            <h4>User Add</h4>
        </div>
        <div class="portlet-widgets">
            <a data-toggle="collapse" data-parent="#accordion" href="#f-3"><i class="fa fa-chevron-down"></i></a>
        </div>
        <div class="clearfix"></div>
    </div>
    <div id="f-3" class="panel-collapse collapse in">
        <div class="portlet-body">
            <form:form class="form-horizontal" method="post" action="user" commandName="userDto">
                <input name="guid" type="hidden" value="${userDto.guid}">

                <div class="form-group">
                    <label class="col-sm-2 control-label">UserName</label>

                    <div class="col-sm-10">
                        <div class="input-group">
                            <input class="form-control" name="username" value="${userDto.username}" type="text"/>
                            <form:errors path="username" cssStyle="color: #ff0000"/>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">PassWord</label>

                    <div class="col-sm-10">
                        <div class="input-group">
                            <input class="form-control" placeholder="请输入密码" value="${userDto.password}" type="password"
                                   autocomplete="off" name="password"/>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">Name</label>

                    <div class="col-sm-10">
                        <div class="input-group">
                            <input class="form-control" value="${userDto.name}" type="text" name="name">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <div class="tcb">
                        </div>
                    </div>
                </div>
                <div class="form-actions">
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-primary">Submit</button>
                            <button type="reset" class="btn">Cancel</button>
                        </div>
                    </div>
                </div>
            </form:form>
        </div>
    </div>
</div>

</body>
</html>
